<template>
    <nut-searchbar v-model="value" @search="search">
        <template #leftin>
            <IconFont name="search2"></IconFont>
        </template>
    </nut-searchbar>
</template>
<script setup>
import { ref } from 'vue'
import { IconFont } from '@nutui/icons-vue-taro'
const value = ref('')

const search = (e) => {
    console.log('搜索', e)
}
</script>
